<?php
session_start();
$user_id = $_SESSION['userid'];
date_default_timezone_set('prc');

$table = "user";
$result = mysql_query("select * from $table where user_id ='$user_id'");

while ($row = mysql_fetch_array($result)) {
    $user_name = $row['user_name'];
    $user_term = $row['user_term'];
    $department = $row['department'];
    $balance = $row['balance'];
    $password = $row['password'];
}



?>